<?php
class sfNoDefaultValueValidator extends sfValidator {

public function execute(&$value, &$error)
  {

      if ($value == $this->getParameter('default')) {
      	$error = $this->getParameter('error');
      	return false;
      }

      return true;
  }

  public function initialize ($context, $parameters = null)
  {
    // Initialize parent
    parent::initialize($context);

    // Set parameters
    $this->getParameterHolder()->add($parameters);

    return true;
  }

}
?>
